/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package toybox.behavioral.command;

/**
 *
 * @author BuccatR
 */
public class PressSwitch {

    public static void main(String[] args) {

        Light lamp = new Light();
        Command switchUp = new FlipUpCommand(lamp);
        Command switchDown = new FlipDownCommand(lamp);

        Switch s = new Switch(switchUp, switchDown);

        s.flipUp();
        s.flipDown();

    }

}
